﻿


@model IEnumerable<Student>

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "学生列表";
}


<div class=" card-deck">
    @foreach (var student in Model)
    {
        <div class="card m-3">
            <div class="card-header">
                <h4>@student.Name</h4>
            </div>
            <img class="card-img-top" style="width:100%;height:500px" asp-append-version="true" src="~/img/04.jpg" />
            <div class="card-footer text-center">
                <a asp-controll="home" asp-action="details" asp-route-id="@student.Id" class="btn btn-primary m-1" >查看</a>
                <a href="#" class="btn btn-primary m-1">编辑</a>
                <a href="#" class="btn btn-danger m-1">删除</a>
            </div>
        </div>
    }
</div>


@section Script{
    <script src="~/js/Student.js"></script>
}
